package com.talkweb.platform.commonapi.exception;

/**
 * 微服务层异常类
 * 
 * @author lzy
 * @version [版本号, 2017年7月24日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class MicroServiceException extends RuntimeException
{
    
    private static final long serialVersionUID = -9178423902705840514L;
    
    /**
     * 错误码
     */
    private String code;
     
    /**
     * 工程名
     */
    
    private String project;
    /**
     * 错误详情;
     */
    private String message = "";
    
    public MicroServiceException(String code, String message)
    {
        super();
        this.code = code;
        this.message = message;
    }
    
    public String getMessage()
    {
        return message;
    }
    
    public void setMessage(String message)
    {
        this.message = message;
    }
    
    public String getCode()
    {
        return code;
    }
    
    public void setCode(String code)
    {
        this.code = code;
    }
    
}